﻿@using WebCore_MVC.Models;
@{ 
    var items = ViewData["Items"] as IEnumerable<User>;
}
<div class="container">
   <div class="row">

       <table class="table">
           <thead>
               <tr>
                   <th>用户名</th>
                   <th>密码</th>
               </tr>
           </thead>
           <tbody>
               @if (items!=null)
               {
                   @foreach (var item in items)
                   {
                       <tr>
                           <td>@item.Usr</td>
                           <td>@item.Pwd</td>
                       </tr>
                   }
               }
           </tbody>
       </table>

   </div>

</div>